package com.ltkj.coupon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.BaseEntity;

/**
 * 优惠券规则对象 t_coupon_rule
 * 
 * @author ruoyi
 * @date 2023-09-21
 */
@ApiModel(value = "优惠券规则")
public class TCouponRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 规则类型:1针对景区票2针对活动票 */
    @Excel(name = "规则类型:1针对景区票2针对活动票")
    @ApiModelProperty("规则类型:1针对景区票2针对活动票")
    private Long ruleType;

    /** 关联id */
    @Excel(name = "关联id")
    @ApiModelProperty("关联id")
    private Long refId;

    /** 关联描述:(门票名称) */
    @Excel(name = "关联描述:(门票名称)")
    @ApiModelProperty("关联描述:(门票名称)")
    private String refDesc;

    /** 数据状态 */
    @Excel(name = "数据状态")
    @ApiModelProperty("数据状态")
    private String isDel;

    /** 模板id */
    @Excel(name = "模板id")
    @ApiModelProperty("模板id")
    private Long couponTempId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRuleType(Long ruleType) 
    {
        this.ruleType = ruleType;
    }

    public Long getRuleType() 
    {
        return ruleType;
    }
    public void setRefId(Long refId) 
    {
        this.refId = refId;
    }

    public Long getRefId() 
    {
        return refId;
    }
    public void setRefDesc(String refDesc) 
    {
        this.refDesc = refDesc;
    }

    public String getRefDesc() 
    {
        return refDesc;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }
    public void setCouponTempId(Long couponTempId) 
    {
        this.couponTempId = couponTempId;
    }

    public Long getCouponTempId() 
    {
        return couponTempId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleType", getRuleType())
            .append("refId", getRefId())
            .append("refDesc", getRefDesc())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .append("couponTempId", getCouponTempId())
            .toString();
    }
}
